Optimal. Leaf size=220 \[ \frac {e x}{b}+\frac {f x^2}{2 b}-\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}-\frac {a f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}+\frac {a f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 220, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5676, 3403,
2296, 2221, 2317, 2438} \begin {gather*} -\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}+\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {a (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b d \sqrt {a^2+b^2}}+\frac {a (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b d \sqrt {a^2+b^2}}+\frac {e x}{b}+\frac {f x^2}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2296
Rule 2317
Rule 2438
Rule 3403
Rule 5676
Rubi steps
\begin {align*} \int \frac {(e+f x) \sinh (c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac {\int (e+f x) \, dx}{b}-\frac {a \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{b}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {(2 a) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{b}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {(2 a) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt {a^2+b^2}}+\frac {(2 a) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt {a^2+b^2}}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {(a f) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{b \sqrt {a^2+b^2} d}-\frac {(a f) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{b \sqrt {a^2+b^2} d}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {(a f) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {(a f) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt {a^2+b^2} d^2}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}-\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}+\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.48, size = 163, normalized size = 0.74 \begin {gather*} \frac {x (2 e+f x)}{2 b}-\frac {a \left (d (e+f x) \left (\log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )-\log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )+f \text {PolyLog}\left (2,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )-f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )}{b \sqrt {a^2+b^2} d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(439\) vs.
\(2(198)=396\).
time = 1.29, size = 440, normalized size = 2.00
method | result | size |
risch | \(\frac {f \,x^{2}}{2 b}+\frac {e x}{b}+\frac {2 a e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d b \sqrt {a^{2}+b^{2}}}-\frac {a f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d b \sqrt {a^{2}+b^{2}}}-\frac {a f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b \sqrt {a^{2}+b^{2}}}+\frac {a f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d b \sqrt {a^{2}+b^{2}}}+\frac {a f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b \sqrt {a^{2}+b^{2}}}-\frac {a f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b \sqrt {a^{2}+b^{2}}}+\frac {a f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b \sqrt {a^{2}+b^{2}}}-\frac {2 a f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} b \sqrt {a^{2}+b^{2}}}\) | \(440\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 532 vs.
\(2 (199) = 398\).
time = 0.36, size = 532, normalized size = 2.42 \begin {gather*} \frac {{\left (a^{2} + b^{2}\right )} d^{2} f x^{2} + 2 \, {\left (a^{2} + b^{2}\right )} d^{2} x \cosh \left (1\right ) + 2 \, {\left (a^{2} + b^{2}\right )} d^{2} x \sinh \left (1\right ) - 2 \, a b f \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) + 2 \, a b f \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) - 2 \, {\left (a b c f - a b d \cosh \left (1\right ) - a b d \sinh \left (1\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) + 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) + 2 \, {\left (a b c f - a b d \cosh \left (1\right ) - a b d \sinh \left (1\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) - 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) - 2 \, {\left (a b d f x + a b c f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right ) + 2 \, {\left (a b d f x + a b c f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right )}{2 \, {\left (a^{2} b + b^{3}\right )} d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e + f x\right ) \sinh {\left (c + d x \right )}}{a + b \sinh {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\mathrm {sinh}\left (c+d\,x\right )\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________